package com.study.controller;

import com.study.dto.MyUser2;
import com.study.mp.service.Test3;
import com.study.mp.service.TestService;
import com.study.mp.service.TestService2;
import com.study.service.MyCom;
import com.study.service.MyCom1;
import com.study.service.TestService3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author tanglingyu
 * @Date: 2021/09/03/ 10:13
 * @Description
 */
@RequestMapping("/test3")
@RestController
public class TestController3 {

  @Autowired
  private TestService testServiceImpl;


  @Autowired
  private TestService testService;

  @Autowired
  private TestService2 testService2;

  @Autowired
  private TestService2 testServiceImpl2;


  @Autowired
  private TestService3 testService3;

  @Autowired
  private TestService3 testServiceImpl3;

  @Autowired
  private MyCom myCom;

  @Autowired(required = false)
  private MyCom1 myCom1;


  @Autowired
  private Test3 test3;



  @RequestMapping("/test3")
  public String test3() {
    MyUser2 myUser2 = new MyUser2();
    myUser2.setAge(10);
    myUser2.setName("sb");
    testServiceImpl.save(myUser2);
    return "mp";
  }

}
